<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        let name = "lisa";
        let age = 18;
        let gender = "女";
        let obj = {
            name
        };
        let obj1 = {
            age
        };
        let obj2 = {
            gender
        }
        let a = Object.assign(obj,obj1,obj2);
        console.log(a);
        console.log(obj);
        console.log(obj1);

        let b = Object.keys(obj);
        console.log(b);
        
        let c = Object.values(obj);
        console.log(c);
        
        let obj3 = {
            name:"小萍",
            age:18,
            gender:"女",
            skill:["吃","喝","玩"]
        }
        let d= JSON.stringify(obj3)
        console.log(d);
        let e = JSON.parse(d)
        console.log(e);
        
    </script>
</body>
</html>